package com.zhiyou100.serviceImpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou100.mapper.BackUserControllerMapper;
import com.zhiyou100.model.MUser;
import com.zhiyou100.service.BackUserControllerService;
@Service
public class BackUserControllerServiceImpl implements BackUserControllerService{
	@Autowired
	private BackUserControllerMapper mapper;
	@Override
	public List<MUser> findAll(Map<String, Object> map) {
		List<MUser> muser = mapper.findAll(map);
		return muser;
	}
	@Override
	public void userAdd(MUser muser) {
		mapper.userAdd(muser);
		
	}
	@Override
	public void userDelete(String id) {
		mapper.userDelete(id);
		
	}
	@Override
	public MUser userUpdate(String id) {
		MUser muser = mapper.muserUpdate(id);
		return muser;
	}
	@Override
	public void updateUserById(MUser muser) {
		mapper.updateUserById(muser);
		
	}

}
